package cn.edu.cqytxy.demo1;

/**
 * @author yinjw
 */
public class CarTest {

    public static void main(String[] args) {
        Car car = new Car();
        Thread thread1 = new Thread(new Producer(car));
        Thread thread2 = new Thread(new Consumer(car));
        thread1.start();
        thread2.start();
    }
}
